package com.qiang.demo04;

import java.time.LocalDateTime;
import java.util.Date;

public class Test05 {
    public static void main(String[] args) {
        LocalDateTime now = LocalDateTime.now();
        int year = now.getYear();
        System.out.println(year);

        Date date = new Date();
        System.out.println(date);
        int year1 = date.getYear();
        System.out.println(year1);
        int abs = Math.abs(-123);
        System.out.println(abs);
    }
}
